package org.csmzxy.class2333;

public class 练习 {
    public static void main(String[] args){
        int[][] arr1 = {{4,6},{1,4,5,7},{-2}};
        int sum = 0;
        for(int i = 0; i < arr1.length; i++){
            for(int j = 0; j <arr1[i].length; j++){
                sum += arr1[i][j];
            }
        }
        System.out.println("和为"+sum);
    }
}
